const path = require('path')
const common = require('./webpack.common')
const merge = require('webpack-merge')
const {CleanWebpackPlugin} = require('clean-webpack-plugin')

module.exports = merge(common(), {
    mode: 'production',
    devtool: 'none', //发布时 使用none
    output: {       // 输出文件属性
        filename: '[name]-[hash].bundle.js', // 输出文件名
        path: path.join(__dirname, 'dist'),// 输出文件目录  要绝对路径
    },
    plugins: [
        new CleanWebpackPlugin(),
    ]
})




